<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div data-tag="1" id="d1">hello</div>
    <script src="../js/jquery-1.12.4.min.js"></script>
    <script>
        // $("#d1").data("tag","1.0");
        // $("#d1").attr("data-tag","1");
        console.log($("#d1").data("tag"));
    </script>
</body>
</html>